

def get_responder(request):
    user = request.user
    # 获取审批者
    # 1. 如果是teacher
    if user.department.teacher.uid == user.uid:
        # 1.1. 如果是教务处
        if user.department.name == '教务处':
            responder = None
        else:
            responder = user.department.manager
    # 2. 如果不是teacher
    else:
        responder = user.department.teacher
    return responder